<%@ include file="/common/common.jsp"%>
<%@ page import="java.util.*" %>
<%@ page import="com.samebuilding.domain.*" %>
<table width="1024" border="0"> 
<tr> 
<td height="120"><DIV id=demo style="OVERFLOW: hidden; WIDTH:1024px; HEIGHT: 120px" align=center> 
<TABLE cellSpacing=0 cellPadding=0 align=left border=0 cellspace="0"> 
<TBODY> 
<TR> 
<TD id=demo1 vAlign=top> 
<table width="1024" border="0" align="center" cellpadding="0" cellspacing="0"> 
<tr> 
<%
	List<User> list=(List<User>)application.getAttribute("onlineUser");
	if(list!=null&&list.size()>0){
		for(Iterator it=list.iterator();it.hasNext();) {
			StringBuffer all=new StringBuffer();
			User u=(User)it.next();
		 	all.append("<a href=");
		 	all.append(basePath);
		 	all.append("/user.do?method=homePage&");
			all.append("userNo=");
			all.append(u.getUserNo());
			all.append(">");
			all.append(u.getUsername());
			all.append("<br>");
			all.append("<img src=");
			all.append(u.getPhotoURL());
			all.append(" height='100'></a>");
%> 
    <td><%=all.toString() %></td>
<% 
		}
	}
%>
</table> </TD> 
<TD id=demo2 vAlign=top></TD></TR></TBODY> 
</TABLE> 
</DIV> 
<div align="center"> 
<SCRIPT> 
var speed=1 
demo2.innerHTML=demo1.innerHTML 
function Marquee(){ 
if(demo2.offsetWidth-demo.scrollLeft<=0) 
demo.scrollLeft-=demo1.offsetWidth 
else{ 
demo.scrollLeft++ 
} 
} 
var MyMar=setInterval(Marquee,speed) 
demo.onmouseover=function() {clearInterval(MyMar)} 
demo.onmouseout=function() {MyMar=setInterval(Marquee,speed)} 
</SCRIPT> 
</div> 
</td> 
</tr> 
</table>